3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next
Figure 18 shows a disk.
Vector3D majorRadius
Vector3D minorRadius
Point3D origin
Float32 uMin
Float32 uMax
A disk is a two-dimensional object defined by an origin (that is, the center of the disk) and two vectors that define the major and minor radii of the disk. A disk may have the shape of a circle, ellipse, or other oval. Attributes may be assigned to the entire disk only.
The default surface parameterization for a disk is as shown in Figure 18 .
Disk (
1 0 0 # majorRadius
0 1 0 # minorRadius
0 0 0 # origin
0 #uMin
1 #uMax
0 #vMin
1 #vMax
)
Previous | QD3D Book | Overview | Chapter Contents | Next